package com.pactera.madp.cp.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;


/**
 * @description: 子账号实体
 * @author: zhaojinjian
 * @create: 2020-11-17 11:32
 **/
@Data
@TableName("cp_user")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "系统管理员")
public class UserEntity  extends BaseEntity<UserEntity> {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "性别 0未定义 1男 2女")
    private Integer gender;

    @ApiModelProperty(value = "部门")
    private String department;

    @ApiModelProperty(value = "职务")
    private String position;

    @ApiModelProperty(value = "上一次登陆时间")
    private Date loginTime;

    @ApiModelProperty(value = "状态 0未启用 1正常 2禁用")
    private Integer status;

    @TableField(value = "isSuperAdmin")
    @ApiModelProperty(value = "是否为超级管理员 - 0否1是")
    private Integer isSuperAdmin;

}
